#include "Camera.h"
#include "Viewport.h"

namespace egg{

    Viewport::Viewport(Camera* camera):
    mCamera(camera),mSSAO(false),mLeft(0),mBottom(0),mWidth(1),mHeight(1){
    }

    void Viewport::setRect(uint32 left,uint32 bottom,uint32 width,uint32 height){
        mLeft=left;
        mBottom=bottom;
        mWidth=width;
        mHeight=height;
        mCamera->updateProjectionMatrix();
    }

}